package cn.jji8.QSGUI.Gui.Goods;

public class test2 {
    public static void main(String[] args) {
        try {
            Class c = Class.forName("cn.jji8.QSGUI.Gui.Goods.Display");
            try {
                Object o = c.newInstance();
                Goods goods = (Goods) o;

                goods.click(null);

            } catch (InstantiationException e) {
                e.printStackTrace();
                System.out.println("实例化错误");
            } catch (IllegalAccessException e) {
                e.printStackTrace();
                System.out.println("非法访问");
            }
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
            System.out.println("名字错误");
        }
    }
}
